﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.IO;
using System.Text;
using System.Windows.Forms;
using System.Xml;
using System.Xml.Serialization;
using PowerWaveAddin;

namespace PowerWaveAddin
{
	public partial class UploadConfigControl : UserControl
	{
		public delegate void UploadConfigOkHandler(object sender, EventArgs e);
		public delegate void UploadConfigCancelHandler(object sender, EventArgs e);

		private event UploadConfigOkHandler m_UploadConfigOk;
		public event UploadConfigOkHandler UploadConfigOk
		{
			add { m_UploadConfigOk += (value); }
			remove { m_UploadConfigOk -= (value); }
		}

		private event UploadConfigCancelHandler m_UploadConfigCancel;
		public event UploadConfigCancelHandler UploadConfigCancel
		{
			add { m_UploadConfigCancel += (value); }
			remove { m_UploadConfigCancel -= (value); }
		}

		public UploadConfigControl()
		{
			InitializeComponent();
		}

		protected void RaiseUploadConfigOk(EventArgs e)
		{
			if (m_UploadConfigOk != null)
				m_UploadConfigOk(this, e);
		}

		protected void RaiseUploadConfigCancel(EventArgs e)
		{
			if (m_UploadConfigCancel != null)
				m_UploadConfigCancel(this, e);
		}
	}
}
